﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RolePlayingGame
{
    public abstract class EnemyBase : MapObject, ICollidable, IRenderable
    {
        public int Level { get; set; }
        public uint Health { get; set; }
        public int DamageDone { get; set; } //damage done with shooting
        public int DamageCollisiton { get; set; } //damage done with collision

        public EnemyBase(Coord startLocation, char symbol, int level)
            : base(startLocation, symbol)
        {
            this.Level = level;
        }

        public virtual void TakeDamage(int damageTaken)
        {
            if (damageTaken <= this.Health)
            {
                this.Disapear();
            }
            else
            {
                this.Health -= (uint)damageTaken;
            }
        }


        public void CollideWith(MapObject other)
        {
            throw new NotImplementedException();
        }

    }
}
